<?php

namespace app\admin\validate;

use think\Validate;

class Cate extends Validate
{
    protected $rule = [
        'title' => 'require|unique:cate'
    ];

    protected $message = [
        'title.require' => '名称不能为空',
        'title.unique' => '名称已存在'
    ];

   
}